import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Novel } from './novel.entity';
import { Chapter } from './chapter.entity';
import { NovelService } from './novel.service';
import { NovelController } from './novel.controller';
import { CrawlerModule } from '../crawler/crawler.module';

@Module({
  imports: [TypeOrmModule.forFeature([Novel, Chapter]), CrawlerModule],
  providers: [NovelService],
  controllers: [NovelController],
  exports: [NovelService],
})
export class NovelModule {}